<div class="grid_9">

<?php if($this->session->flashdata('type')): ?>
	<div class="<?php echo $this->session->flashdata('type')?>"><?php echo $this->session->flashdata('msg')?></div>
<?php endif; ?>

<div class="inner-border">
<h6>School Setting</h6>

<?php

	foreach($school_setting as $school){
		$formAttrib = array('id' => 'schoolsetting', 'class' => 'admin-form');
		$schoolNameAttrib = array('name' => 'schoolname', 'value' => $school->name, 'id' => 'schoolname');
		$schoolAddressAttrib = array('name' => 'schooladdress', 'value' => $school->address, 'id' => 'schooladdress');
		$schoolTelAttrib = array('name' => 'schooltelephone', 'value' => $school->telephone, 'id' => 'schooltelephone' );
		$schoolEmailAttrib = array('name' => 'schoolemail', 'value' => $school->email, 'id' => 'schoolemail');
	}
		
	?>
    <?php echo form_open('post/update_school', $formAttrib); ?>
    
	<div class="input-block">
    <?php
		echo form_label('School Name: ', 'schoolname');
		echo form_input($schoolNameAttrib);
	?>
    </div>
    
    <div class="input-block">
    <?php
		echo form_label('School Address: ', 'schooladdress');
	    echo form_input($schoolAddressAttrib);
	?>
    </div>
    
    <div class="input-block">
    <?php
		echo form_label('Telephone: ', 'schooltelephone');
		echo form_input($schoolTelAttrib);
	?>
    </div>
    
    <div class="input-block">
    <?php
		echo form_label('Email: ', 'schoolemail');
		echo form_input($schoolEmailAttrib);
	?>
	</div>
    
    <div class="input-block">
    <?php
		echo form_submit('update', 'Update');
	?>
    </div>
	
	
		

</div>
</div>